﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using ScoutOffice.BLL;

namespace ScoutOffice.UnitTests.BLL
{
    [TestFixture]
    public class ScouterFixture
    {
        [Test]
        public void BeginPosition()
        {
            Position p = new Position(true, "PL", "Patrol Leader");
            Scout s = new Scout("Joe", "Scout");
            s.BeginPosition(p);

            Assert.IsTrue(s.CurrentPositions.Contains(p));
        }

        [Test]
        public void EndPosition()
        {
            Position p = new Position(true, "PL", "Patrol Leader");
            Scout s = new Scout("Joe", "Scout");
            s.BeginPosition(p);

            Assert.IsTrue(s.CurrentPositions.Contains(p));

            s.EndPosition(p);

            Assert.IsFalse(s.CurrentPositions.Contains(p));
        }
    }
}
